package dao;

import entities.TransactionJdo;
import org.hibernate.SessionFactory;
import org.springframework.orm.hibernate3.HibernateTemplate;

import java.sql.Date;
import java.util.List;

public class DBTransactionDAOImpl implements TransactionDAO{

    private HibernateTemplate hibernateTemplate;

    public void setSessionFactory(SessionFactory sessionFactory){
        this.hibernateTemplate = new HibernateTemplate(sessionFactory);
    }

    public void addTransaction(TransactionJdo transaction) {
        //To change body of implemented methods use File | Settings | File Templates.
    }

    public void removeTransaction(TransactionJdo transaction) {
        //To change body of implemented methods use File | Settings | File Templates.
    }

    public void updateTransaction(Long transactionId, TransactionJdo transaction) {
        //To change body of implemented methods use File | Settings | File Templates.
    }

    public TransactionJdo getTransactionById(Long transactionId) {
        return null;  //To change body of implemented methods use File | Settings | File Templates.
    }

    public List<TransactionJdo> getTransactionsByCompanyId(Long companyId) {
        return null;  //To change body of implemented methods use File | Settings | File Templates.
    }

    public List<TransactionJdo> getTransactionsByGroupId(Long groupId) {
        return null;  //To change body of implemented methods use File | Settings | File Templates.
    }

    public List<TransactionJdo> getTransactionsByDateRegistered(Date dateRegistered) {
        return null;  //To change body of implemented methods use File | Settings | File Templates.
    }

    public List<TransactionJdo> getTransactionsRegisteredInPeriod(Date startDate, Date endDate) {
        return null;  //To change body of implemented methods use File | Settings | File Templates.
    }
}
